var tablename = "news";
module.exports = {
	get: function(req, res) {

		// console.log("查询表“", tablename, "”的数据", req.body, req.query);
		var finner = req.models[tablename].find({
			"type": 1,
		});
		require("../../include/RESTful_query").orm_get(finner, req.query);

		finner.run(function(err, result) {
			if (err) {
				res.send(500, err);
			} else {
				res.send(result);
				for (var i = result.length - 1; i >= 0; i--) {
					// console.log(result[i]);
				};
			}
		});
	},
}